package net.borderwars.robots;

import java.awt.*;
import java.util.Random;

/**
 * @author Eric
 *         Date: Dec 14, 2003
 *         Time: 3:12:20 PM
 */
public class Test extends Robot {

    public Random ranGen = new Random ();

    public Test () {
        super ();
        ;
    }

    public Test (int x, int y, int speed) {

    }

    public void iAmAlive () {
        // drive(10, 100);

        // hehe("wow");
        //x = x + 2;
        //int z = 0;
        //drive(129, 393);
//        int w = bp.getWidth();
//        int h = bp.getHeight();

        for (int y = 0; y < 10; y++) {
            //int r = getIntInRange(0,3);

            int i = getIntInRange (-2048, 2048);
            int j = getIntInRange (-2048, 2048);
            drive (i, j);
        }
    }

    public int getIntInRange (int a, int b) {
        int i = ranGen.nextInt ();
        int d = b - a;
        d = Math.abs (d);
        i = Math.abs (i);
        i = i % d;

        i += a;
        return (i);
    }

    public Polygon getPoly () {
        return null;
    }

}
